<form action="" method="post">
    用户名：<input type="text" name="username">
    <br>
    密码：<input type="password" name="passwd">
    <input type="submit" name="sub" value="登录">
</form>
<?php
/**
 * User: lie
 * Date: 2020/12/4 13:52
 * Title: 通过异或方式对用户注册密码进行加密
 * Description:
 * Error:
 */
if ($_POST['sub']) {
    $str = '012345678';
    echo "用户名：".$_POST['username'];
    echo "<br>";
    echo "密码：".($_POST['passwd']^$str);
}